package com.wps.data
{
	public class DayInfo
	{
		public var leftTime: Number;
		public var leftTaskCount: Number;
		public var usersResult: Vector.<UserResult>;
		public var date: Date;
		public var dateIndex: int;
		
		public function importFromXml(): void
		{
			usersResult = new Vector.<UserResult>();
			for(var i: int = 0; i < ProjectManager.userCount; i++)
			{
				var userResult: UserResult = new UserResult(ProjectManager.users[i], ProjectManager.dayCount - dateIndex + Math.random() * 10,  0 );
				usersResult.push(userResult);
				leftTime += userResult.timeCount;
				leftTaskCount += userResult.taskCount;
			}
		}
	}
}